package com.sali.custom_validator.sex_check;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Version: 1.0.0
 * @Author: Dragon_王
 * @ClassName: isMobile
 * @Description: 验证是否是手机号
 * @Date: 2024/1/24 13:47
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = { IsSexValidator.class }
)
public @interface IsSex {
    String[]  value() default {"F","M"};

    String message() default "手机号码格式错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
